package com.ruoyi.drug.service.impl;

import com.ruoyi.drug.domain.DrugPhysic;
import com.ruoyi.drug.mapper.DrugPhysicMapper;
import com.ruoyi.drug.service.IDrugPhysicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DrugPhysicServiceImpl implements IDrugPhysicService {
    @Autowired
    private DrugPhysicMapper drugPhysicMapper;

    @Override
    public List<DrugPhysic> selectPhysicList(DrugPhysic drugPhysic) {
        return drugPhysicMapper.selectPhysicList(drugPhysic);
    }

    @Override
    public DrugPhysic selectPhysicById(Long physicId) {
        return drugPhysicMapper.selectPhysicById(physicId);
    }

    @Override
    public int updatePhysic(DrugPhysic drugPhysic) {
        return drugPhysicMapper.updatePhysic(drugPhysic);
    }

    @Override
    public int deletePhysicById(Long physicId) {
        return drugPhysicMapper.deletePhysicById(physicId);
    }

    @Override
    public int deletePhysicByIds(Long[] physicIds) {
        return drugPhysicMapper.deletePhysicByIds(physicIds);
    }
}
